package com.service;

import java.io.IOException;

import com.controller.vo.OpenId;
import com.controller.vo.PersonVo;

public interface ILoginService {

	boolean hasAccount(String account, String type);

	Object registerPerson(String account, String password, String openId, String type);

	PersonVo login(String account, String password);
	
	PersonVo login(String account, String password, String openId, String type);

	void forgetPassword(String account, String password, String type);
	
	OpenId getAccess_token(String code) throws IOException;
}
